package com.hrsystem.entity;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * 用户实体类
 */
@Data
@ToString
public class User {
    private Integer id;
    private Integer adminId;
    private  Integer userType;
    @NotNull(message = "姓名不能为空", groups = {UserRegister.class})
    private String name;
    @NotNull(message = "账号不能为空", groups = {UserLogin.class, UserRegister.class})
    private String account;
    @NotNull(message = "密码不能为空", groups = {UserLogin.class, UserRegister.class})
    private String password;
    private String token;


}
